package com.atguigu.tingshu.album.temp;

import com.atguigu.tingshu.album.mapper.AlbumInfoMapper;
import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.model.album.AlbumInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author:huzhongkui
 * Date: 2025-03-21 星期五 15:19:38
 * Description:
 */

@RestController
@RequestMapping("/v1")
public class TempController {

    @Autowired
    private AlbumInfoMapper albumInfoMapper;


    @GetMapping("/testDate")
    public Result getAlbumInfo() {

        AlbumInfo albumInfo = albumInfoMapper.selectById(1600);

        return Result.ok(albumInfo);

    }
}
